﻿using Abp.Application.Services.Dto;
using shenghua.Basics.CommodityWareSetting.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shenghua.Basics.CommodityWareSetting
{
    public interface ICommodityWareAppService
    {
        Task<CommodityWareDto> CreateWare(CreateCommodityWareDto input);
        Task<CommodityWareDto> UpdateWare(UpdateCommodityWareDto input);
        Task SortUpWare(EntityDto input);
        Task SortDownWare(EntityDto input);
        Task DeleteWare(EntityDto input);
        Task<List<CommodityWareDto>> GetAllWares();
        Task<CommoditySpecificationParameterDto> CreateSpecificationParameter(CreateCommoditySpecificationParameterDto input);
        Task<CommoditySpecificationParameterDto> UpdateSpecificationParameter(UpdateCommoditySpecificationParameterDto input);
        Task SortUpSpecificationParameter(EntityDto input);
        Task SortDownSpecificationParameter(EntityDto input);
        Task DeleteSpecificationParameter(EntityDto input);
        Task<List<CommoditySpecificationParameterDto>> GetAllSpecificationParameters(int commodityWareId);
    }
}
